/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.entities.MOCK;

import app.entities.model.DTO.AlunoDTO;
import app.entities.model.DTO.BimestreDTO;
import app.entities.model.DTO.ChamadaEletronicaDTO;
import app.entities.model.DTO.MatriculaAlunoDTO;
import app.entities.model.DTO.MatriculaProfessorDTO;
import app.entities.model.DTO.NotasAlunoDTO;
import app.entities.model.DTO.ProfessorDTO;
import app.entities.model.DTO.TurmaDTO;
import java.util.ArrayList;

/**
 *
 * @author Murilo
 */
public class MockPersistencia {

    private static ArrayList<AlunoDTO> MockAlunos;
    private static ArrayList<ProfessorDTO> MockProfessores;
    private static ArrayList<TurmaDTO> MockTurmas;
    private static ArrayList<MatriculaAlunoDTO> MockMatriculasAlunos;
    private static ArrayList<MatriculaProfessorDTO> MockMatriculaProfessores;
    private static ArrayList<BimestreDTO> MockBimestres;
    private static ArrayList<NotasAlunoDTO> MockNotasAluno;
    private static ArrayList<ChamadaEletronicaDTO> MockChamadaseletronicas;
    
    public MockPersistencia(){
        
    }
    
    public static synchronized ArrayList<AlunoDTO> getInstanciaListaAlunos(){
        if(MockAlunos == null){
            MockAlunos = new ArrayList<>();
        }
        return MockAlunos;
    }
    
    public static synchronized ArrayList<ProfessorDTO> getInstanciaListaProfessores(){
        if(MockProfessores == null){
            MockProfessores = new ArrayList<>();
        }
        return MockProfessores;
    }
    
    public static synchronized ArrayList<TurmaDTO> getInstanciaListaTurmas(){
        if(MockTurmas == null){
            MockTurmas = new ArrayList<>();
        }
        return MockTurmas;
    }
    
    public static synchronized ArrayList<MatriculaAlunoDTO> getInstanciaListaMatriculaAlunos(){
        if(MockMatriculasAlunos == null){
            MockMatriculasAlunos = new ArrayList<>();
        }
        return MockMatriculasAlunos;
    }
    
    public static synchronized ArrayList<MatriculaProfessorDTO> getInstanciaListaMatriculaProfessores(){
        if(MockMatriculaProfessores == null){
            MockMatriculaProfessores = new ArrayList<>();
        }
        return MockMatriculaProfessores;
    }
    
    public static synchronized ArrayList<BimestreDTO> getInstanciaListaBimestres(){
        if(MockBimestres == null){
            MockBimestres = new ArrayList<>();
        }
        return MockBimestres;
    }
    
    public static synchronized ArrayList<NotasAlunoDTO> getInstanciaListaNotasAlunos(){
        if(MockNotasAluno == null){
            MockNotasAluno = new ArrayList<>();
        }
        return MockNotasAluno;
    }
    
    public static synchronized ArrayList<ChamadaEletronicaDTO> getInstanciaListaChamadasEletronicas(){
        if(MockChamadaseletronicas == null){
            MockChamadaseletronicas = new ArrayList<>();
        }
        return MockChamadaseletronicas;
    }
}
